# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class CacheInstance(object):

    def __init__(self, cacheInstanceId=None, cacheInstanceName=None, cacheInstanceClass=None, cacheInstanceMemoryMB=None, cacheInstanceStatus=None, cacheInstanceDescription=None, createTime=None, azId=None, vpcId=None, subnetId=None, connectionDomain=None, port=None, charge=None, instanceVersion=None, auth=None, redisVersion=None, cacheInstanceType=None, ipv6On=None, tags=None):
        """
        :param cacheInstanceId: (Optional) 实例ID
        :param cacheInstanceName: (Optional) 实例名称
        :param cacheInstanceClass: (Optional) 规格代码，参考 https://docs.jdcloud.com/cn/jcs-for-redis/specifications
        :param cacheInstanceMemoryMB: (Optional) 实例的总内存（MB）
        :param cacheInstanceStatus: (Optional) 实例状态：creating表示创建中，running表示运行中，error表示错误，changing表示变更规格中，deleting表示删除中，configuring表示修改参数中，restoring表示备份恢复中
        :param cacheInstanceDescription: (Optional) 实例描述
        :param createTime: (Optional) 创建时间（ISO 8601标准的UTC时间，格式为：YYYY-MM-DDTHH:mm:ssZ）
        :param azId: (Optional) az信息
        :param vpcId: (Optional) 所属VPC的ID
        :param subnetId: (Optional) 所属子网的ID
        :param connectionDomain: (Optional) 访问域名
        :param port: (Optional) 端口
        :param charge: (Optional) 计费信息
        :param instanceVersion: (Optional) 实例的详细版本号，形如x.x-x.x
        :param auth: (Optional) 连接redis实例时，是否需要密码认证，false表示无密码
        :param redisVersion: (Optional) 创建实例时选择的redis引擎版本：目前支持2.8和4.0
        :param cacheInstanceType: (Optional) 实例类型：master-slave表示主从版，cluster表示集群版
        :param ipv6On: (Optional) 是否支持IPv6，0表示不支持（只能用IPv4），1表示支持
        :param tags: (Optional) 标签信息
        """

        self.cacheInstanceId = cacheInstanceId
        self.cacheInstanceName = cacheInstanceName
        self.cacheInstanceClass = cacheInstanceClass
        self.cacheInstanceMemoryMB = cacheInstanceMemoryMB
        self.cacheInstanceStatus = cacheInstanceStatus
        self.cacheInstanceDescription = cacheInstanceDescription
        self.createTime = createTime
        self.azId = azId
        self.vpcId = vpcId
        self.subnetId = subnetId
        self.connectionDomain = connectionDomain
        self.port = port
        self.charge = charge
        self.instanceVersion = instanceVersion
        self.auth = auth
        self.redisVersion = redisVersion
        self.cacheInstanceType = cacheInstanceType
        self.ipv6On = ipv6On
        self.tags = tags
